<%@page import="java.io.PrintWriter"%>
<%@page import="java.util.logging.Logger"%>
<%@page import="java.io.StringWriter"%>
<%@ include file="/WEB-INF/jsp/common/include.jsp" %>
<%@ page pageEncoding="UTF-8"%>
<%@ page isErrorPage="true" %>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %>
<tiles:insertDefinition name="layout.tiles">
  <tiles:putAttribute name="pageTitle">Ошибка</tiles:putAttribute>
  <tiles:putAttribute name="body">
      <div class="box">
        <div class="box-container">
          <h2>Ошибка</h2>
          Приносим наши извинения. Произошла непредвиденная ошибка.
          <% exception.printStackTrace(); %>
          <%
          StringWriter stringWriter = new StringWriter();
          exception.printStackTrace(new PrintWriter(stringWriter));
          Logger.getLogger(getClass().getName()).severe(stringWriter.toString()); %>
          <div class="cn tl"></div><div class="cn tr"></div>
        </div>
        <div class="cn bl"></div><div class="cn br"></div>
      </div>
  </tiles:putAttribute>
</tiles:insertDefinition>